﻿    if (typeof (AutoClub) === "undefined") {
        AutoClub = {};
    }

 AutoClub.Layout = (function ($) {
    settings = {
       ImageArray : []
    };

    init = function () {
        /* body fadeIn effect */
        $('body').hide().fadeIn(2500);
        /* Simple script to cache images */
        $(window).load(function () {
            var hidden = $('body').append('<div id="img-cache" style="display:none/>').children('#img-cache');
            $.each(this.settings.ImageArray, function (i, val) {
                $('<img/>').attr('src', val).appendTo(hidden);
            });
        });

    };

    //Funciones o variables publicas
    return {
        Init: init,
        Settings: settings
    }

} (window.$));
